import React, { useEffect, useState } from 'react'
import Stale_CacheTime, {OtherStale_CacheTime} from './test/staleTime-cacheTime'

export default function App() {
  const [show, setShow] = useState(false)
  const showNext = () => setShow(true)

  return (
    <>
      <button onClick={showNext}>展示第二个</button>
      <Stale_CacheTime/>
      {show && <OtherStale_CacheTime/>}
    </>
  )
}
